export interface BaseResult {
  code: ResultCode | number;
  msg: string;
  success: true;
}

export interface DataResult<T> extends BaseResult {
  data: T[];
}

export interface PageResult<T> extends DataResult<T> {
  total: number;
}

export enum ResultCode {
  //一般性错误
  Err = 0,
  //成功
  Success = 1,
  //等待
  Wait = 2,
}
